home *** CD-ROM | disk | FTP | other *** search
/ Power DOS 1996 July / Power DOS - July 1996.iso / sound / c_labs / awe / adip.exe / ADIP02.ZIP / WINDOWS / SAMPLE / MAKEFILE < prev    next >
Text File  |  1994-07-08  |  1KB  |  72 lines

  1. ###########################################################################
  2. #
  3. #    MAKE-MY-DAY file for WINAWE32
  4. #
  5. #    Author : Cheng Kok Hoong
  6. #
  7. ###########################################################################
  8.  
  9. ##### Module Macros ####
  10. NAME    = winawe32
  11. SRCS    = $(NAME).c mci.c
  12.  
  13. ##### DEBUG Macro Defined #####
  14. DEBUG   = 0
  15.  
  16. ##### Resource Macro #####
  17. RCFILES = $(NAME)
  18.  
  19. ##### Library Macros #####
  20. LIBS    = libw slibcew commdlg mmsystem
  21. MOD     = -AS
  22.  
  23. ##### Build Option Macros #####
  24. !if $(DEBUG)
  25. DDEF    = -DDEBUG
  26. CLOPT   = -Zid -Od
  27. MOPT    = -Zi
  28. LOPT    = /NOLOGO /NOD /STACK:5120 /ALIGN:16 /ONERROR:NOEXE /CO
  29. !else
  30. DDEF    =
  31. CLOPT   = -Ox
  32. LOPT    = /NOLOGO /NOD /STACK:5120 /ALIGN:16 /ONERROR:NOEXE
  33. !endif
  34.  
  35. ##### General Macros #####
  36. DEF     =
  37.  
  38. ##### Tool Macros #####
  39. ASM     = masm -Mx $(MOPT) $(DDEF) $(DEF)
  40. CC      = cl -nologo -c -G2sw -Zp -W3 $(MOD) $(CLOPT) $(DDEF) $(DEF)
  41. LINK    = link /NOD /NOE $(LOPT)
  42. RC        = rc $(DDEF) $(DEF)
  43. HC        = hc
  44.  
  45. ##### Inference Rules #####
  46. .c.obj:
  47.     $(CC) $*.c
  48.  
  49. .asm.obj:
  50.     $(ASM) $*.asm;
  51.  
  52. .rc.res:
  53.     $(RC) -r $*.rc
  54.  
  55. ##### Main (default) Target #####
  56. goal: $(NAME).exe
  57.  
  58. ##### Dependents For Goal and Command Line #####
  59. $(NAME).exe: $(SRCS:.c=.obj) $(RCFILES).def $(RCFILES).res
  60.     $(LINK) @<<
  61.     $(SRCS:.c=.obj) $(OBJS),
  62.     $(NAME).exe,
  63.     ,
  64.     $(LIBS),
  65.     $(RCFILES).def
  66. <<
  67.     $(RC) -K  $(RCFILES).res $(NAME).EXE
  68.  
  69. ##### Dependents #####
  70. $(SRCS:.c=.obj):  $(INCLS)
  71. $(NAME).res: $(RCFILES).def
  72.